
import request from '@/utils/request';
const apiUrls = {
  // areapolygon: '/front/common/area/polygon',
  homeChart: '/front/home/chart',
  commonArea: '/front/common/area',
  getTerminallist: '/front/externalInterface/getTerminallist',
  orgServiceList: '/front/org/service/list',
  plantLayer: '/front/plant/layer',
  dahuaChannelAll: '/front/dahua/channel/all'
};
// export function getAreapolygon (data) {
//   return request({
//     url: apiUrls.areapolygon,
//     method: 'get',
//     params: data
//   });
// }
export function homeChart (data) {
  return request({
    url: apiUrls.homeChart,
    method: 'get',
    params: data
    // data: data
  });
}
export function commonArea (data) {
  return request({
    url: apiUrls.commonArea,
    method: 'get',
    params: data
    // data: data
  });
}
export function dahuaChannelAll (data) {
  return request({
    url: apiUrls.dahuaChannelAll,
    method: 'get',
    params: data
    // data: data
  });
}
export function getTerminallist (data) {
  return request({
    url: apiUrls.getTerminallist,
    method: 'get',
    params: data
    // data: data
  });
}
export function orgServiceList (data) {
  return request({
    url: apiUrls.orgServiceList,
    method: 'get',
    params: data
    // data: data
  });
}
export function plantLayer (data) {
  return request({
    url: apiUrls.plantLayer,
    method: 'get',
    params: data
    // data: data
  });
}
